package com.daka.tools;

import lombok.Data;

/**
 * Created by jinyifeng@163.com on 15/9/24.
 */
@Data

public class TableItemVo implements Comparable<TableItemVo> {
    
    private String column1;
    
    private String row1;
    
    private String row2;
    
    private Integer value;
    
    @Override
    public int compareTo(TableItemVo o) {
        int j = this.getRow1().compareTo(o.getRow1());
        if (j == 0) {
            return this.getRow2().compareTo(o.getRow2());
        }
        return j;
    }
    
}
